package com.kma.summer2012.client.services;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.kma.summer2012.client.ExceptionHandling.ExceptionProcessor;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 18.03.13
 * Time: 15:57
 * To change this template use File | Settings | File Templates.
 */
public abstract class AbstractCallBack<T> implements AsyncCallback<T> {
    @Override
    public void onFailure(Throwable caught) {
        ExceptionProcessor.getInstance().processServiceFailure(caught);
        System.out.println(caught.getMessage());
    }
}
